package com.test.shiyan1;

import java.util.Scanner;

public class sushu {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int k = (int) Math.sqrt(n+1);
        int i;
        for (i = 2;i<=k;i++){
            if (n%i == 0)
                break;
        }
        if (i<=k||n==1||n==0){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}
